package com.Jhu1.controller;

import com.Jhu1.service.IClassService;
import com.Jhu1.service.IStudentService;
import com.Jhu1.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjh
 * @since 2025-01-07
 */
@RestController
@RequestMapping("/class")
public class ClassController {
    @Autowired
    private IClassService classService;
    @GetMapping("/list")
    public R findAllClass(){

        return R.ok().data("list",classService.list());
    }
}
